package cn.iocoder.yudao.module.product.spu.vo;

import cn.iocoder.yudao.framework.common.validation.InEnum;
import cn.iocoder.yudao.module.api.product.spu.enums.ProductSpuStatusEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

@Schema(description = "用户 APP - 设置产品 SPU 状态 Request VO")
@Data
public class AppProductSpuUpdateStatusReqVO {

    @Schema(description = "产品编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "产品编号不能为空")
    private Long id;

    @Schema(description = "产品状态：-1-回收站、0-已下架、1-已上架、2-待审核", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "产品状态不能为空")
    @InEnum(ProductSpuStatusEnum.class)
    private Integer status;

}
